import service from '@/utils/request'

export const useProcess_stagesApi = (id: number) => {
	return service.get('/project/process-stages/' + id)
}

export const useProcess_stagesSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/project/process-stages', dataForm)
	} else {
		return service.post('/project/process-stages', dataForm)
	}
}
